<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ page import="java.util.*,com.vcs.domain.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<s:if test="#request.js != null">
<table cellpadding="5" cellspacing="0" border="0" width="100%"
	bordercolor="red">
	<tr>
		<td colspan="3" bgcolor="#bfbfbf"
			style="color: black; font-weight: bold;">Personal Profile</td>
	</tr>
	<tr>
		<td>Name:</td>
		<td><strong><s:property value="#request.js.firstName"
			default="Content not available" /> <s:property
			value="#request.js.lastName" default="Content not available" /></strong>&nbsp;&nbsp;&nbsp;
		<s:if test="#request.js.gender != null && #request.js.gender == true">
					(Male)
				</s:if> <s:else>
					(Female)
				</s:else></td>
	</tr>
	<tr>
		<td>Email:</td>
		<td><s:property value="#request.js.email"
			default="Content not available" /></td>
	</tr>
	<tr>
		<td width="125">Mobile Number:</td>
		<td><s:property value="#request.js.mobileNumber"
			default="Content not available" /></td>
	</tr>
	<tr>
		<td>Current Location</td>
		<td>
		<%
			List<Location> locList = (List<Location>) application
					.getAttribute("locationList");
			int id = ((Jobseeker) request.getAttribute("js"))
					.getCurrentLocation();

			String curLocation = null;
			for (Location loc : locList) {
				if (loc.getId() == id) {
					curLocation = loc.getName();
				}
			}
		%> <%=curLocation%></td>
	</tr>
	<tr>
		<td>Preferred Location</td>
		<td>
		<%
			//List<Location> locList = (List<Location>) application.getAttribute("locationList");
			int preferredLocId = ((Jobseeker) request.getAttribute("js"))
					.getPreferredLocation();

			String preferredLocation = null;
			for (Location loc : locList) {
				if (loc.getId() == preferredLocId) {
					preferredLocation = loc.getName();
				}
			}
		%> <%=preferredLocation%></td>
	</tr>
	<tr>
		<td></td>
		<td></td>
	</tr>
	<tr>
		<td colspan="3" bgcolor="#bfbfbf"
			style="color: black; font-weight: bold;">Professional Profile</td>
	</tr>
	<tr>
		<td><label>Total Experience</label></td>
		<td><s:property value="#request.js.expYears" default="0" />
		Years <s:property value="#request.js.expMonths" default="0" /> Months</td>
	</tr>
	<tr>
		<td><label>Skills</label></td>
		<td><s:property value="#request.js.keySkills" default="0" /></td>
	</tr>
	<tr>
		<td><label>Current Employer</label></td>
		<td><s:property value="#request.js.currentEmployer"
			default="not found" /></td>
	</tr>
	<tr>
		<td><label>Previous Employer</label></td>
		<td><s:property value="#request.js.previousEmployer"
			default="not found" /></td>
	</tr>
	<tr>
		<td><label>Designation</label></td>
		<td><s:property value="#request.js.designation"
			default="not found" /></td>
	</tr>
	<tr>
		<td colspan="3" bgcolor="#bfbfbf"
			style="color: black; font-weight: bold;">Academic Profile</td>
	</tr>
	<tr>
		<td><label>Highest Qualification</label></td>
		<td><s:property
			value="#application.qualificationList[#request.js.highestQualification - 1].name"
			default="not found" /></td>
	</tr>
	<tr>
		<td><label>Year of Passing</label></td>
		<td><s:property value="#request.js.yearOfPassing"
			default="not found" /></td>
	</tr>

	<tr>
		<td><label>Specialization</label></td>
		<td><s:property value="#request.js.specialization"
			default="Not Available" /></td>
	</tr>
	<tr>
		<td><label>Institute</label></td>
		<td><s:property value="#request.js.institute" default="not found" /></td>
	</tr>
</table>
</s:if>
</body>
</html>